<?php

use yii\data\ActiveDataProvider;

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/19 0019
 * Time: 上午 11:08
 */

function p($var)
{
    echo "<pre>";
    print_r($var);
}

function pp($var)
{
    echo "<pre>";
    print_r($var);
    die;
}

function d($var)
{
    echo "<pre>";
    var_dump($var);
    echo "</pre>";
    die;
}

function dd($var)
{
    if ($var === false) {
        var_dump($var);
        die;
    }
    echo "<pre>";
    print_r($var);
    echo "</pre>";
}

function getSql($query)
{
    if ($query === false) {
        var_dump($query);
        die;
    }
    echo "<pre/>";
    print_r($query->createCommand()->getRawSql());die;
}